﻿
<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>制袋</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <script src="~/js/layui/layui.js"></script>
    <link href="~/js/layui/css/layui.css" rel="stylesheet" />
    <link href="~/X-admin/css/xadmin.css" rel="stylesheet" />
    <script src="~/X-admin/js/jquery.min.js"></script>
    <script src="~/X-admin/js/xadmin.js"></script>
    <script src="~/js/framework/sysframework.js"></script>
    <script src="~/js/framework/commonjs.js"></script>

</head>
<body>
    <ul lay-bar="disabled" class="mWebBanner" id="mWebBanner">
        <li class="layui-nav-item" style="float:left;">
            <button id="btn-Save" type="button" name="btn_update" onclick="SavePlanGYData('dForm')" class="buttonCss">
                <i class="layui-icon" style="margin-right:3px">&#x1005;</i>保存数据
            </button>
        </li>

    </ul>
    <div class="layui-card" >
        <div class="layui-card-body" style="padding-top:3%">
            <div class="layui-card-body" id="layui-table-main">
                <table class="layui-hide" id="gxmlist" lay-filter="gxmlist"></table>
            </div>
            <form id="dForm" class="layui-form layui-col-space5" lay-filter="form-filter">

                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            袋 型
                        </div>
                        <input type="text" id="daixing" name="daixing" class="layui-input">

                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:4%">
                        <div class="layui-input-prefix">
                            成品膜尺寸
                        </div>
                        <input type="text" id="cpmcc" name="cpmcc" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:8%">
                        <div class="layui-input-prefix">
                            产品结构
                        </div>
                        <input type="text" id="cpjg" name="cpjg" class="layui-input" style="width:110%"  />
                    </div>
                    
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            封口方向
                        </div>
                        <input type="text" id="fkfx" name="fkfx" class="layui-input" style="width:110%">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:4%">
                        <div class="layui-input-prefix">
                            封边要求
                        </div>
                        <input type="text" id="fbyq" name="fbyq" class="layui-input" style="width:150%">
                    </div>
                   
                    <div class="layui-input-group" style="float:left;margin-left:8%">
                        <div class="layui-input-prefix">
                            撕裂口位置
                        </div>
                        <input type="text" id="slkwz" name="slkwz" class="layui-input" style="width:150%">
                    </div>
                    
                </div>
              

                <div class="layui-form-item">
                   
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            是否打圆角
                        </div>
                        <input type="text" id="sfdyj" name="sfdyj" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:4%">
                        <div class="layui-input-prefix">
                            透气孔位置
                        </div>
                        <input type="text" id="tqkwz" name="tqkwz" class="layui-input" style="width:150%">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:8%">
                        <div class="layui-input-prefix">
                            透气孔直径
                        </div>
                        <input type="text" id="tqkzj" name="tqkzj" class="layui-input" style="width:150%">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            悬挂孔位置
                        </div>
                        <input type="text" id="xkkwz" name="xkkwz" class="layui-input" style="width:150%">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:8%">
                        <div class="layui-input-prefix">
                            悬挂孔直径
                        </div>
                        <input type="text" id="xgkzj" name="xgkzj" class="layui-input" style="width:150%">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:8%">
                        <div class="layui-input-prefix">
                            拉链尺寸
                        </div>
                        <input type="text" id="llcc" name="llcc" class="layui-input" style="width:150%">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            是否打扣手
                        </div>
                        <input type="text" id="sfdks" name="sfdks" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:3%">
                        <div class="layui-input-prefix">
                            扣手形状
                        </div>
                        <input type="text" id="ksxz" name="ksxz" class="layui-input" style="width:150%">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:8%">
                        <div class="layui-input-prefix">
                            扣手位置
                        </div>
                        <input type="text" id="kswz" name="kswz" class="layui-input" style="width:150%">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            插底宽度
                        </div>
                        <input type="text" id="cdkd" name="cdkd" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:3%">
                        <div class="layui-input-prefix">
                            折边宽度
                        </div>
                        <input type="text" id="zbkd" name="zbkd" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:3%">
                        <div class="layui-input-prefix">
                            是否剩料
                        </div>
                        <input type="text" id="sfsl" name="sfsl" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            产品要求
                        </div>
                        <input type="text" id="cpyq" name="cpyq" class="layui-input" style="width:450%">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            包装要求
                        </div>
                        @* <input type="text" id="bzyq" name="bzyq" class="layui-input" style="width:450%"> *@
                        <textarea id="bzyq" name="bzyq" placeholder="请输入内容" class="layui-textarea" style="width:550%"></textarea>

                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            客户要求
                        </div>
                        @* <input type="text" id="kehuyq" name="kehuyq" class="layui-input" style="width:450%"> *@
                        <textarea id="kehuyq" name="kehuyq" placeholder="请输入内容" class="layui-textarea" style="width:550%"></textarea>

                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            模板机前
                        </div>
                        <input type="text" id="mbjq" name="mbjq" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:3%">
                        <div class="layui-input-prefix">
                            机中
                        </div>
                        <input type="text" id="mbjz" name="mbjz" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:3%">
                        <div class="layui-input-prefix">
                            机后
                        </div>
                        <input type="text" id="mbjh" name="mbjh" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            保温刀
                        </div>
                        <input type="text" id="baowendao" name="baowendao" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:3%">
                        <div class="layui-input-prefix">
                      烫刀尺寸(纵)
                        </div>
                        <input type="text" id="tangdaoz" name="tangdaoz" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:3%">
                        <div class="layui-input-prefix">
                            烫刀尺寸(横)
                        </div>
                        <input type="text" id="tangdaoh" name="tangdaoh" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            一次牵引张力
                        </div>
                        <input type="text" id="ycqyzl" name="ycqyzl" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:4%">
                        <div class="layui-input-prefix">
                            二次牵引张力
                        </div>
                        <input type="text" id="ecqyzl" name="ecqyzl" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:8%">
                        <div class="layui-input-prefix">
                            制袋速度
                        </div>
                        <input type="text" id="zdsd" name="zdsd" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-group" style="float:left;">
                        <div class="layui-input-prefix">
                            耐温范围
                        </div>
                        <input type="text" id="zdnwfw" name="zdnwfw" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:2%">
                        <div class="layui-input-prefix">
                           制袋件数
                        </div>
                        <input type="text" id="zdjs" name="zdjs" class="layui-input">
                    </div>
                    <div class="layui-input-group" style="float:left;margin-left:2%">
                        <div class="layui-input-prefix">
                            制袋数量
                        </div>
                        <input type="text" id="zdsl" name="zdsl" class="layui-input">
                    </div>
                </div>
               
                <input type="hidden" id="plCode" name="plCode">
                <input type="hidden" id="gxCode" name="gxCode" value="ZD">
            </form>

            <div class="layui-card-body" id="layui-table-main">
                <table class="layui-hide" id="mplist" lay-filter="mplist"></table>
            </div>
        </div>
    </div>

</body>
</html>

<script src="~/js/sysweb/planjs.js"></script>
<script type="text/html" id="barDemo">
    <a title="详情" href="javascript:;" lay-event="view" ><i class="layui-icon">&#xe615;</i></a>
    <a title="删除" href="javascript:;" lay-event="del" ><i class="layui-icon">&#xe640;</i></a>
</script>
<script>
    var plCode = "",isRead="0";
    $(function () {
        plCode = getUrlVariable("plCode");
        isRead = getUrlVariable("isRead");
        $("input[ name='plCode']").val(plCode);
        
        if (isRead=="1")
            $('#mWebBanner').hide();

        loadGyFormData(plCode, "ZD");
        loadGxPro();
        loadZhYMaterial(plCode, "ZD");
    })
    //存货选择
    function ChooseGxProduct() {
        layer.open({
            type: 2,
            maxmin: false,
            fix: false,
            title: "选择存货",
            area: ['90%', '90%'],
            closeBtn: 1,
            shadeClose: true,
            content: "../Basic/SelectInvStock?isSingle=0",
            //关闭弹出框的回调函数，不管弹出框是手动关闭还是通过脚本进行关闭，都执行
            end: function () {

            }
        });
    }

    //存货参数获取
    function getChildPar(pars) {
        if (pars != undefined) {
            var proCodes = "";
            for (var i = 0; i < pars.length; i++) {
                proCodes += pars[i].proCode + "-" + pars[i].cBatch + ",";
            }
            proCodes = proCodes.slice(0, -1);
            let gxCode = $("input[ name='gxCode']").val();
            SaveGxMaterials(proCodes, plCode, gxCode);
        }
    }

</script>

